package com.hs.service.impl;

import com.hs.entity.UserSearchHistory;
import com.hs.mapper.UserSearchHistoryMapper;
import com.hs.service.UserSearchHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserSearchHistoryServiceImpl implements UserSearchHistoryService {
    @Autowired
    private UserSearchHistoryMapper userSearchHistoryMapper;
    @Override
    public int deleteById(Integer id) {
        return userSearchHistoryMapper.deleteById(id);
    }

    @Override
    public int insertUserSearchHistory(UserSearchHistory userSearchHistory) {
        return userSearchHistoryMapper.insertUserSearchHistory(userSearchHistory);
    }

    @Override
    public int updaueUserSearchHistory(UserSearchHistory userSearchHistory) {
        return userSearchHistoryMapper.updaueUserSearchHistory(userSearchHistory);
    }

    @Override
    public UserSearchHistory getUserSearchHistoryById(Integer id) {
        return userSearchHistoryMapper.getUserSearchHistoryById(id);
    }
}
